home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v10n12.arc / WINEXT.DOC < prev    next >
Text File  |  1991-05-30  |  5KB  |  76 lines

  1. WINEXT.EXE
  2. V10N12
  3.  
  4. Fran Finnegan                                      June 25, 1991 (Utilities)
  5.  
  6. Purpose:   WINEXT is designed to extend the association power of File Manager,  
  7. the MS-DOS Executive and Program Manager.  Be sure that WINEXT is on your  
  8. PATH.  Although for special purposes you might want to run WINEXT directly  
  9. from the Program Manager, it is normally invoked by being included in the  
  10. entries in the WIN.INI [Extensions] section. 
  11.  
  12. Format:    The full syntax for WINEXT within the WIN.INI is:
  13.  
  14.                       INSERT 2(12)--3 lines
  15.                       INSERT 2(12)--3 lines
  16.                       INSERT 2(12)--3 lines
  17.                       ext=winext.exe [?] d:\path
  18.                       d:\path\program.ext [arguments]
  19.                       ^.ext [arguments]
  20.  
  21. Remarks:    As previously, ext is the extension of a data file.  The optional 
  22. ? parameter option causes WINEXT to bring up a message box that displays the 
  23. ext= entry and the new command line and gives you a chance to cancel the 
  24. command before it is executed.  This is useful when you are adding and/or 
  25. modifying your [Extension] entries in WIN.INI.  Once you are comfortable with 
  26. how WINEXT operates you can then simply delete the ? parameter from your ext= 
  27. lines. 
  28.     The d:\path section of the syntax specifies the drive and directory in 
  29. which you wish to be when the program has been started and loaded with its 
  30. associated data file.  Note that the d:\path start-up drive/directory may be . 
  31. or .. , which will have the effect, respectively, of keeping you in the 
  32. directory containing the data file or of changing to its parent directory.  If 
  33. you enter an invalid path, WINEXT will warn you in a message box.
  34.     The d:\path\program.ext specifies the drive, directory, and name of 
  35. the program you want to associate with the data file's extension.  The program 
  36. may be any DOS or Windows executable file or a batch file.  (.PIF files have 
  37. their own way of doing what WINEXT does, so they aren't relevent here.)  If 
  38. program does not contain an extension, then .EXE is assumed by Windows.  If 
  39. the program is not preceded by a drive and/or directory path, Windows will 
  40. search for it in the following order:  the current working directory (which is 
  41. now d:\path, since WINEXT switched to it); the Windows directory; the Windows 
  42. \SYSTEM directory; the directories listed in the PATH environment variable; 
  43. and the list of directories mapped in a network.
  44.     The optional arguments parameters (in both places in the syntax) are 
  45. any parameters peculiar to the application specified that you may want to 
  46. include.  These would be used for compiler switches or 
  47. compression/decompression utilities, for example.  Putting double-quotes ( " ) 
  48. around arguments causes a group of arguments to be considered as a single 
  49. argument.
  50.     For the ^.ext portion of the WINEXT syntax you can do one of three 
  51. things.  First, you can simply replace the .ext with the data file extention, 
  52. as in a normal WIN.INI file (see Figure 1).  Because WINEXT has been loaded, 
  53. however, when you double-click on a file with the associated ext in File 
  54. Manager or the MS-DOS Executive, WINEXT remembers the current directory the 
  55. data file is in, but switches to the drive and directory specified by d:\path.  
  56. Note that if WINEXT does not detect a qualified filespec (one that includes a 
  57. drive or path), it prepends the current directory containing the data file.  
  58. This assures that all applications started by WINEXT will receive a fully-
  59. specified data filename.
  60.     Second, for the ^.ext you can use the caret alone, with no data file 
  61. extention specified.  This will cause the data file extension to be stripped 
  62. off.  This is useful when dealing with programs (AUTOCAD, for example) that do 
  63. not require extensions on the command line or that may indeed not work 
  64. properly if the data file extension is present.  (If you have a particular 
  65. need, you might even supply an ext that is different from your data file's 
  66. extension.)  
  67.     Third, you can use * in place of ^.ext to tell WINEXT not to include 
  68. any data filename on the command line.  This option is particularly useful if 
  69. you want to use WINEXT as a program item in a program group of Program 
  70. Manager, as will be shown in the examples below.
  71.     Note that in order to use the caret (^) by itself, or to add arguments 
  72. after the ^ or ^.ext, or to use the asterisk (*) and no filename, you must 
  73. manually edit your WIN.INI file.  You can use the System Configuration Editor, 
  74. Notepad or a plain ASCII text editor.  (Remember too that you must restart 
  75. Windows in order for the WIN.INI changes to take effect.)
  76.